package cn.zswltech.gruul.common.exception;

/**
 * @author Jim
 * @version 1.0.0
 * @descripition:
 * @date 2024/3/15 10:49
 */
public enum RoleErrorEnum implements BaseErrorEnum{

    ROLE_TO_USER_ERROR(60001,"角色查询用户失败"),
    ROLE_ADD_ERROR(60002,"角色新增失败"),
    ROLE_EXISTS_ERROR(60003,"角色已存在"),
    ROLE_UPDATE_ERROR(60004,"角色修改失败"),
    ROLE_NOT_EXISTS_ERROR(60005,"角色不存在"),
    ROLE_DEL_ERROR(60006,"角色删除失败"),
    QUERY_ROLE_UNDER_SYSTEM_ERROR(60007,"查询应用下角色失败"),
    QUERY_ROLE_MENU_RESOURCE_ERROR(60008,"查询角色绑定资源失败"),
    ;
    private Integer errCode;
    private String errMsg;

    @Override
    public Integer getErrCode() {
        return errCode;
    }

    @Override
    public String getErrMsg() {
        return errMsg;
    }

    RoleErrorEnum(Integer errCode, String errMsg) {
        this.errCode = errCode;
        this.errMsg = errMsg;
    }
}
